﻿<controls:ChildWindow x:Class="OpalisConsole.Views.Administration.Child_Windows.ActiveDirectorySiteChooser"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
       
        <StackPanel Margin="10,5,10,0" Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBlock Height="23" HorizontalAlignment="Left" Name="labelFilter" Text="Filter:" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Right" Name="boxFilter" Width="235" TextChanged="boxFilter_TextChanged" />    
            </StackPanel>
            <sdk:DataGrid AutoGenerateColumns="False" Name="gridSites" Margin="0,5,0,0" MaxHeight="200">
                <sdk:DataGrid.Columns>
                    <sdk:DataGridTextColumn Binding="{Binding}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="4*" IsReadOnly="True" Header="Active Directory Site Settings" />
                </sdk:DataGrid.Columns>
            </sdk:DataGrid>
            <StackPanel Orientation="Horizontal" FlowDirection="RightToLeft" Margin="0,5,0,0">
                <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Grid.Row="1" />
                <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Grid.Row="1" />
            </StackPanel>                
        </StackPanel>
    </Grid>
</controls:ChildWindow>